<?php include('header.php');?>
<div class="container-fluid">
	<div class="row-fluid">
		<div class="span 12">
			<h1>ADMIN</h1>
		</div>
	</div>
	<div class="row-fluid">
		<div class="span2"">
			<?php include('lefter.php');?>
		</div>
		<div class="span10">
			<div class="row-fluid">
				<div class="span8">
					<h3>
						<span>CAREERS WRITE</span>
					</h3>
				</div>
			</div>
			<hr />
			<form id="view_form" class="form-horizontal"  action="<?=base_url('admin/careers_write_action')?>" method="post" enctype="multipart/form-data">
			<input type="hidden" name="id" />
			<div class="control-group">
				<label class="control-label" for="title"><strong>제목</strong></label>
				<div class="controls">
					<input type="text" name="title" id="title" />
				</div>
			</div>
			<div class="control-group">
				<label class="control-label" for="height"><strong>높이</strong></label>
				<div class="controls">
					<input type="text" name="height" id="height" />
				</div>
			</div>
			<div class="control-group">
				<label class="control-label" for="content"><strong>본문</strong></label>
				<div class="controls">
					<textarea id="content" name="content"></textarea>
				</div>
			</div>
			<div class="row-fluid">
				<div class="span4 offset8">
					<div class="pull-right">
						<button type="button" class="btn btn-cancel">Cancel</button>
						<button type="submit" class="btn btn-primary">Save</button>
					</div>
				</div>
			</div>
			</form>
		</div>
	</div>
</div>
<script src="<?=JS_DIR?>/jquery-1.8.3.min.js"></script>
<script src="<?=JS_DIR?>/respond.min.js"></script>
<script src="<?=BS_DIR?>/admin/js/bootstrap.min.js"></script>
<script src="<?=JS_DIR?>/jquery.tmpl.min.js"></script>
<script src="<?=BS_DIR?>/admin/js/bootstrap-fileupload.min.js"></script>
<script src="<?=JU_DIR?>/js/jquery-ui-1.9.2.custom.min.js"></script>
<script src="<?=CK_DIR?>/ckeditor.js"></script>
<script>
$(function() {
	$("#view_form").on("submit", function() {
		if(!$("#title").val()) {
			alert("제목을 입력해 주세요");
			$("#title").focus();
			return false;
		}
	});
	$("button.btn-cancel").click(function() {
		location.href = "<?=base_url('admin/careers')?>";
	});
	CKEDITOR.replace( 'content', {
	    filebrowserUploadUrl: "<?=base_url('admin/ckeditor_image_upload')?>"
	});
});
</script>
<?php include('footer.php');?>